<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The OCILob class</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="ocicollection.trim.html">« OCICollection::trim</a></li>
      <li style="float: right;"><a href="ocilob.append.html">OCILob::append »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.oci8.html">OCI8</a></li>
    <li>The OCILob class</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.ocilob" class="reference">
 <h1 class="title">The OCILob class</h1>
 
 
 <div class="partintro"><p class="verinfo">(PHP 5, PHP 7, PHP 8, PECL OCI8 &gt;= 1.1.0)</p>
 

  <div class="section" id="ocilob.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    OCI8 LOB functionality for large binary (BLOB) and character (CLOB) objects.
   </p>
   <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    The <span class="classname"><strong class="classname">OCI-Lob</strong></span> class was renamed to <span class="classname"><strong class="classname">OCILob</strong></span> in PHP 8 and PECL OCI8 3.0.0 to align with PHP naming standards.
   </p>
   </p></blockquote>
  </div>

 
  <div class="section" id="ocilob.synopsis">
   <h2 class="title">类摘要</h2>
 

   <div class="classsynopsis">
    <div class="ooclass">
     
    </div>

    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">OCILob</strong>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="ocilob.append.html" class="methodname">append</a></span>(<span class="methodparam"><span class="type"><a href="class.ocilob.html" class="type OCILob">OCILob</a></span> <code class="parameter">$from</code></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.close.html" class="methodname">close</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.eof.html" class="methodname">eof</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.erase.html" class="methodname">erase</a></span>(<span class="methodparam"><span class="type">?</span><span class="type"><span class="type">int</span><span class="type"></span></span> <code class="parameter">$offset</code><span class="initializer"> = <strong><code>null</code></strong></span></span>, <span class="methodparam"><span class="type">?</span><span class="type"><span class="type">int</span><span class="type"></span></span> <code class="parameter">$length</code><span class="initializer"> = <strong><code>null</code></strong></span></span>): <span class="type"><span class="type">int</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.export.html" class="methodname">export</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span>, <span class="methodparam"><span class="type">?</span><span class="type"><span class="type">int</span><span class="type"></span></span> <code class="parameter">$offset</code><span class="initializer"> = <strong><code>null</code></strong></span></span>, <span class="methodparam"><span class="type">?</span><span class="type"><span class="type">int</span><span class="type"></span></span> <code class="parameter">$length</code><span class="initializer"> = <strong><code>null</code></strong></span></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.flush.html" class="methodname">flush</a></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$flag</code><span class="initializer"> = 0</span></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.free.html" class="methodname">free</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.getbuffering.html" class="methodname">getBuffering</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.import.html" class="methodname">import</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.load.html" class="methodname">load</a></span>(): <span class="type"><span class="type">string</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.read.html" class="methodname">read</a></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$length</code></span>): <span class="type"><span class="type">string</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.rewind.html" class="methodname">rewind</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.save.html" class="methodname">save</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>, <span class="methodparam"><span class="type">int</span> <code class="parameter">$offset</code><span class="initializer"> = 0</span></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.seek.html" class="methodname">seek</a></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$offset</code></span>, <span class="methodparam"><span class="type">int</span> <code class="parameter">$whence</code><span class="initializer"> = <strong><code>OCI_SEEK_SET</code></strong></span></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.setbuffering.html" class="methodname">setBuffering</a></span>(<span class="methodparam"><span class="type">bool</span> <code class="parameter">$mode</code></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.size.html" class="methodname">size</a></span>(): <span class="type"><span class="type">int</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.tell.html" class="methodname">tell</a></span>(): <span class="type"><span class="type">int</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.truncate.html" class="methodname">truncate</a></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$length</code><span class="initializer"> = 0</span></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.write.html" class="methodname">write</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>, <span class="methodparam"><span class="type">?</span><span class="type"><span class="type">int</span><span class="type"></span></span> <code class="parameter">$length</code><span class="initializer"> = <strong><code>null</code></strong></span></span>): <span class="type"><span class="type">int</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ocilob.writetemporary.html" class="methodname">writeTemporary</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>, <span class="methodparam"><span class="type">int</span> <code class="parameter">$type</code><span class="initializer"> = <strong><code>OCI_TEMP_CLOB</code></strong></span></span>): <span class="type">bool</span></div>

   }</div>

 
  </div>
  
 </div>
 
 


















































































































<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="ocilob.append.html">OCILob::append</a> — Appends data from the large object to another large object</li><li><a href="ocilob.close.html">OCILob::close</a> — Closes LOB descriptor</li><li><a href="ocilob.eof.html">OCILob::eof</a> — Tests for end-of-file on a large object's descriptor</li><li><a href="ocilob.erase.html">OCILob::erase</a> — Erases a specified portion of the internal LOB data</li><li><a href="ocilob.export.html">OCILob::export</a> — Exports LOB's contents to a file</li><li><a href="ocilob.flush.html">OCILob::flush</a> — Flushes/writes buffer of the LOB to the server</li><li><a href="ocilob.free.html">OCILob::free</a> — Frees resources associated with the LOB descriptor</li><li><a href="ocilob.getbuffering.html">OCILob::getBuffering</a> — Returns current state of buffering for the large object</li><li><a href="ocilob.import.html">OCILob::import</a> — Imports file data to the LOB</li><li><a href="ocilob.load.html">OCILob::load</a> — Returns large object's contents</li><li><a href="ocilob.read.html">OCILob::read</a> — Reads part of the large object</li><li><a href="ocilob.rewind.html">OCILob::rewind</a> — Moves the internal pointer to the beginning of the large object</li><li><a href="ocilob.save.html">OCILob::save</a> — Saves data to the large object</li><li><a href="ocilob.savefile.html">OCILob::saveFile</a> — 别名 OCILob::import</li><li><a href="ocilob.seek.html">OCILob::seek</a> — Sets the internal pointer of the large object</li><li><a href="ocilob.setbuffering.html">OCILob::setBuffering</a> — Changes current state of buffering for the large object</li><li><a href="ocilob.size.html">OCILob::size</a> — Returns size of large object</li><li><a href="ocilob.tell.html">OCILob::tell</a> — Returns the current position of internal pointer of large object</li><li><a href="ocilob.truncate.html">OCILob::truncate</a> — Truncates large object</li><li><a href="ocilob.write.html">OCILob::write</a> — Writes data to the large object</li><li><a href="ocilob.writetemporary.html">OCILob::writeTemporary</a> — Writes a temporary large object</li><li><a href="ocilob.writetofile.html">OCILob::writeToFile</a> — 别名 OCILob::export</li></ul>
</div>
</div></div></body></html>